home *** CD-ROM | disk | FTP | other *** search
/ LOGIC Apps / Logic-APPLE_II_APPS.iso / pc / LOGIC Apple II 5.25" Library - DOS Part 7 / DOS210.dsk / LESSON.SYS.bas < prev    next >
BASIC Source File  |  2012-02-16  |  7KB  |  62 lines

  1. 5  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>       <CTRL-M> *** PROTEIN SYNTHESIS LESSON ***<CTRL-M>    WRITTEN BY DAVID CALABRESE<CTRL-M>  COPYRIGHT 1984 BY THE SOFTWARE<CTRL-M>             ZONE<CTRL-J>
  2. 10  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>        <CTRL-M>*** DEFINE VARIABLES<CTRL-J>
  3. 20  TEXT : HOME : NORMAL : FOR I = 1 TO 40:C0$ = C0$ +":": NEXT :C0$ = C0$ + CHR$(8):D$ =  CHR$(4):CL% = 948:KY% = 962:HI% = 772:TE% = 781:UN% = 25345:X% = 768:Y% = 191: DEF  FN C(QZ) =  INT(QZ/2) - INT( LEN(A$)/2)
  4. 30  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>        <CTRL-M>*** TITLE DISPLAY<CTRL-J>
  5. 40  PRINT C0$;:A$ = " DNA LESSON ": HTAB  FN C(40): PRINT A$:A$ = "PROTEIN SYNTHESIS": HTAB  FN C(40): PRINT A$: PRINT :A$ = "WRITTEN BY DAVID CALABRESE": HTAB  FN C(40): PRINT A$
  6. 50 A$ = "COPYRIGHT 1984 BY THE SOFTWARE ZONE": HTAB  FN C(40): PRINT A$: PRINT C0$: POKE 34,8
  7. 60 A$ = "PRESS ANY KEY": HTAB  FN C(40): VTAB 23: PRINT A$: CALL KY%
  8. 330  HOME : HGR : POKE  -16302,0: CALL HI%
  9. 340  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>         <CTRL-M>*** BACKROUND INFO<CTRL-J>
  10. 350 A$ = "DNA0": GOSUB 1000: POKE 768,30: POKE 769,0: PRINT "DNA STRAND": POKE 768,0: POKE 769,5
  11. 360  PRINT "  DNA, or deoxyribonucleic": PRINT "acid, carries all of the": PRINT "necessary information for"
  12. 370  PRINT "protein synthesis.": PRINT : PRINT "  As this program covers": PRINT "only protein synthesis, a": PRINT "basic knowledge of the"
  13. 380  PRINT "structure of DNA is assumed.": PRINT : PRINT "  THINGS YOU SHOULD KNOW"
  14. 390  HCOLOR= 1:Y =  PEEK(769) -10: HPLOT 9,Y TO 173,Y TO 173,Y +10 TO 9,Y +10 TO 9,Y: PRINT 
  15. 400  PRINT "-- DNA is in the shape of a": PRINT "double helix (that >).";:Y =  PEEK(769) +3: HCOLOR= 3: HPLOT 7 *18,Y TO 7 *19 +3,Y
  16. 410  PRINT : PRINT : PRINT "-- The 'rope' parts of the": PRINT "ladder-like structure are": PRINT "long chains of phosphate ": PRINT "units joined by deoxyribose,": PRINT "a five carbon sugar."
  17. 420 A$ = "Press any key": POKE 768, FN C(26): POKE 769,23 *8: PRINT A$: CALL KY%: HCOLOR= 6:A$ = "continued"
  18. 430  CALL UN%: POKE 769,0: POKE 768,30: PRINT "DNA STRAND": POKE 769,5: PRINT "  THINGS YOU SHOULD KNOW":Y =  PEEK(769) -10: HPLOT 10,Y TO 172,Y TO 172,Y +10 TO 10,Y +10 TO 10,Y: POKE 768, FN C(26): POKE 769,15: PRINT A$: PRINT 
  19. 440  PRINT "-- The 'rungs' consist of": PRINT "two bases, one connected to": PRINT "each 'rope' and bonded in": PRINT "the middle with hydrogen."
  20. 450  PRINT : PRINT "-- Each three-part unit of": PRINT "phosphate, deoxyribose and": PRINT "attached base is called a": PRINT "nucleotide."
  21. 460  PRINT : PRINT "-- There are four types of": PRINT "bases in DNA. Two organic": PRINT "bases are known as purines:": PRINT "adenine or guanine. The": PRINT "others are pyrimidines:": PRINT "thymine or cytosine. They"
  22. 470  PRINT "have the letters A,G,T & C.": POKE 769,23 *8:A$ = "Press any key": POKE 768, FN C(26): PRINT A$: CALL KY%:A$ = "continued": HCOLOR= 2
  23. 480  CALL UN%: POKE 769,0: POKE 768,30: PRINT "DNA STRAND": POKE 769,5: PRINT "  THINGS YOU SHOULD KNOW":Y =  PEEK(769) -10: HPLOT 10,Y TO 172,Y TO 172,Y +10 TO 10,Y +10 TO 10,Y: POKE 768, FN C(26): POKE 769,15: PRINT A$: PRINT 
  24. 490  PRINT : PRINT "-- Groups of three": PRINT "nucleotides make up a": PRINT "triplet condon. The letters": PRINT "of the three nucleotides": PRINT "form a code word which": PRINT "codes an amino acid."
  25. 500  PRINT : PRINT "  With this understanding": PRINT "of DNA, you can learn how": PRINT "protein is synthesized.": PRINT 
  26. 510  IF BVG% < >1  THEN 530
  27. 520  PRINT "  "F0$", I KNOW you passed": PRINT "the test on this with no": PRINT "problem, so here we go...": CALL KY%: GOTO 600
  28. 530 Y =  PEEK(769): PRINT "  Do you know all of the": PRINT "preceeding information?": PRINT "(Y/N) ";: POKE  -16368,0:
  29. 540  GET A$: CALL CL%: IF A$ < >"Y"  AND A$ < >"N"  THEN 540
  30. 550  IF A$ = "Y"  THEN  PRINT "Yes.": GOTO 600
  31. 560  PRINT "No.": PRINT : PRINT "  Would you like to review": PRINT "the THINGS YOU SHOULD KNOW": PRINT "section? (Y/N) ";
  32. 570  GET A$: CALL CL%: IF A$ < >"Y"  AND A$ < >"N"  THEN 570
  33. 580  IF A$ = "Y"  THEN  PRINT "Yes.": CALL UN%: POKE 768,30: POKE 769,0: PRINT "DNA STRAND": POKE 768,0: POKE 769,5: GOTO 360
  34. 590  PRINT "No.": FOR I = 1 TO 200: NEXT : CALL TE%: POKE  -16303,0: HOME : PRINT "  SORRY, BUT YOU MUST KNOW THAT         INFORMATION TO LEARN ABOUT PROTEIN      SYNTHESIS.": PRINT : END 
  35. 600  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>         <CTRL-M>*** BEGIN LESSON<CTRL-J>
  36. 610 A$ = "CELL0": GOSUB 1000: POKE 768,0: POKE 769,0
  37. 620  PRINT "  The DNA carries the information neededto construct a protein from a string of amino acids.": PRINT : PRINT "  Protein is synthesized out in the"
  38. 630  PRINT "cytoplasm of a cell at a ribosome, but": PRINT "the DNA is confined to the nucleus."
  39. 640  HCOLOR= 7: HPLOT 110,104 TO 170,104: HPLOT 88,120 TO 170,120: POKE 769,101: POKE 768,25: PRINT "Ribosome": POKE 768,25: POKE 769,117: PRINT "Nucleus"
  40. 650  HPLOT 130,80 TO 170,80: POKE 768,25: POKE 769,77: PRINT "Average cell": POKE 769,23 *8: POKE 768,23: PRINT "Press any key": CALL KY%
  41. 660  HGR : POKE  -16302,0: POKE 768,0: POKE 769,30: PRINT "  To get the code to the ribosome, the  DNA copies its information into         messanger ribonucleic aic (mRNA). This  process is know as transcription."
  42. 670  PRINT : PRINT "  There are a few differences between   RNA and DNA...":A$ = "Press any key": POKE 769,23 *8: POKE 768, FN C(40): PRINT A$: CALL KY%
  43. 680 A$ = "DNA1": GOSUB 1000
  44. 690  POKE 768,0: POKE 769,25: PRINT "  To the right is a DNA": PRINT "strand. Notice that T"
  45. 700  PRINT "(for thymine) joins only": PRINT "with A (adenine) and G": PRINT "(guanine) joins only": PRINT "with C (cytosine)."
  46. 710  PRINT : PRINT : PRINT "  However...": POKE 769,23 *8:A$ = "Press any key.": POKE 768, FN C(20): PRINT A$: CALL KY%
  47. 730  PRINT  CHR$(4)"RUN L0.SYS"
  48. 999  END 
  49. 1000  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>          <CTRL-M>*** LOAD IN PACKED PIC<CTRL-J>
  50. 1010  PRINT D$"BLOAD"A$".PAC,A$63B8": CALL UN%
  51. 1020  RETURN 
  52. 2000  REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>          <CTRL-M>*** LOAD IN PACKED PIC<CTRL-J>
  53. 2010 A$ = FI$: GOSUB 2040:F0$ = B$
  54. 2020 A$ = LA$: GOSUB 2040:L0$ = B$
  55. 2030  RETURN 
  56. 2040 B$ = "":J = 0: FOR I = 1 TO  LEN(A$):C$ =  MID$ (A$,I,1):C =  ASC(C$)
  57. 2050  IF I = 1  THEN B$ = C$: GOTO 2100
  58. 2060  IF J = 1  THEN B$ = B$ +C$:J = 0: GOTO 2100
  59. 2070  IF C$ = " "  THEN J = 1:B$ = B$ +C$
  60. 2080  IF J = 0  THEN B$ = B$ + CHR$(C +32)
  61. 2090  REM 
  62. 2100  NEXT I: RETURN